import axios from 'axios'

export function request(params){
    const instance = axios.create({
        baseURL: 'http://127.0.0.1:8888/api/private/v1/'
    })
    instance.interceptors.request.use(config =>{
        config.headers.Authorization = window.sessionStorage.getItem('token')
        return config
    })
    return instance(params)
}
